package com.asiainfo.cms.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 角色和菜单关联 sys_role_menu
 *
 * @author ruoyi
 */
@Getter
@Setter
@TableName("sys_role_menu")
@ApiModel(value = "SysRoleMenu对象", description = "角色和菜单关联表")
public class SysRoleMenu implements Serializable {

    @ApiModelProperty("主键")
    @TableId(value = "role_menu_id", type = IdType.AUTO)
    private Long roleMenuId;
    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    @TableField("role_id")
    private Long roleId;

    /**
     * 菜单ID
     */
    @ApiModelProperty("菜单ID")
    @TableField("menu_id")
    private Long menuId;

}
